package com.moduleSys.entity.system;

import org.springframework.data.annotation.Transient;

import java.io.Serializable;
import java.util.List;

public class Menu implements Serializable{
    private Long id;

    private String name;

    private String resUrl;

    private String permission;

    private String menuKey;

    private Long type;

    private Long parentId;

    private Long sort;

    private String icon;

    @Transient
    private List<Menu> reList;

    //是否选中
    @Transient
    private String checked;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getResUrl() {
        return resUrl;
    }

    public void setResUrl(String resUrl) {
        this.resUrl = resUrl == null ? null : resUrl.trim();
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public Long getParentId() {
        return parentId;
    }

    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    public Long getSort() {
        return sort;
    }

    public void setSort(Long sort) {
        this.sort = sort;
    }

    public String getChecked() {
        return checked;
    }

    public void setChecked(String checked) {
        this.checked = checked;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }

    public String getMenuKey() {
        return menuKey;
    }

    public void setMenuKey(String menuKey) {
        this.menuKey = menuKey;
    }

    public List<Menu> getReList() {
        return reList;
    }

    public void setReList(List<Menu> reList) {
        this.reList = reList;
    }
}